package com.t.bricks.bussiness.db.mapper.vacation;

import org.apache.ibatis.annotations.Mapper;

import com.t.bricks.bussiness.db.entity.vacation.Vacation;

@Mapper
public interface VacationMapper {
	
	/**
	 * 添加
	 * @Param vacation
	 * @return int
	 */
	int add(Vacation vacation);

	/**
	 * 检查待新增内容是否存在重复数据
	 * @Param vacationData
	 * @return int 重复返回true
	 */
	int checkRepeatByAdd(Vacation vacationBase);
    
	/**
	 * 修改状态
	 * @param vacation
	 * @return
	 */
	int changeState(Vacation vacation);
	
}
